/**
 * 
 */
package com.naiterui.ehp.bs.im.network.transcode.coders;

import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSON;
import com.naiterui.ehp.bs.im.exception.NaiteruiIMException;
import com.naiterui.ehp.bs.im.network.protocl.ConsultPaidNotice;

/**
 * 患者支付付费咨询后的消息通知
 * @author Ldl
 * @since 1.0.0
 */
@Service
public class ConsultPaidNoticeTransCoder extends AbstractTransCoder<ConsultPaidNotice> {

    /**
     * @Author Ldl
     * @Date 2017年4月6日
     * @since 1.0.0
     * @param content
     * @return
     * @throws NaiteruiIMException
     * @see com.naiterui.ehp.bs.im.network.transcode.coders.AbstractTransCoder#deserializeMessageContent(java.lang.String)
     */
    @Override
    protected ConsultPaidNotice deserializeMessageContent(String content) throws NaiteruiIMException {
        return JSON.parseObject(content, ConsultPaidNotice.class);
    }

}
